<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>js链式动画</title>
    <style>
        body{
            margin: 0;
            padding: 0;
        }
        ul,li{
            list-style: none;
        }
        ul li{
            width: 200px;
            height: 200px;
            background: yellow;
            border: 4px solid #000;
            filter: opacity(30);
            opacity: .3;  
        }
    </style>
    <script src="../js/move.js"></script>
    <script>
        window.onload = function(){
            let aLi = document.getElementById('li1')
            aLi.onmouseover = function(){
                startMove(aLi, 'width', 400, function(){
                    startMove(aLi, 'height', 800, function(){
                        startMove(aLi, 'opacity', 100);
                    });
                });
            }
            aLi.onmouseout = function(){
                startMove(aLi, 'opacity', 30, function(){
                    startMove(aLi, 'height', 200, function(){
                        startMove(aLi, 'width', 200);
                    });
                });
            }
        }
    </script>
</head>
<body>
    <ul>
        <li id="li1"></li>
    </ul>
</body>
</html>